/*
 * Copyright (C) 2010-2016 Softtek Information Systems (Wuxi) Co.Ltd.
 * Date:2016-03-31
 */

package com.jarvis.hospital.servers;

import com.jarvis.hospital.common.ResponseData;
import com.jarvis.hospital.model.LoginModel;
import com.jarvis.hospital.model.OpertionDetailModel;
import com.jarvis.hospital.model.OpertionDetailReponseModel;
import com.jarvis.hospital.model.OpertionListModel;
import com.jarvis.hospital.model.OpertionModel;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by jarvis.liu on 9/13/2016.
 */
public interface WebService {
    @GET("task/getTaskListOnWatch")
    Observable<ResponseData<OpertionListModel>> getTaskListOnWatch(@Query("currentPage") int currentPage,
                                                                   @Query("pageSize") int pageSize,
                                                                   @Query("nurseId") String nurseId);
    @GET("task/getTaskInfoOnWatch")
    Observable<ResponseData<OpertionDetailReponseModel>> getTaskInfoOnWatch(@Query("taskId") String taskId);

    @GET("task/updateTaskTimeAct")
    Observable<ResponseData> updateTaskTimeAct(@Query("taskId") String taskId);

    @GET("task/getTaskOwnershipOnWatch")
    Observable<ResponseData> getTaskOwnershipOnWatch(@Query("taskId") String taskId,@Query("nurseId") String nurseId);

    @GET("user/login")
    Observable<ResponseData<LoginModel>> login(@Query("imei") String imei, @Query("loginType") String loginType);

    @GET("user/loginOut")
    Observable<ResponseData> loginOut(@Query("userId") String userId, @Query("loginType") String loginType);

}
